﻿//========================================================================
// *作者：海盗猫  主页：ilplay.com
// *脚本：EditorBaseDate
// *描述：EditorBaseDate
// *?2024 HDMCode . All rights reserved.
//* ======================================================================
using UnityEditor;

namespace HDMCode.UIFrameEditor
{
    public class EditorBaseDate
    {
        public enum FileType
        {
            Asset,
            Script
        }
        
        public enum ScriptType
        {
            Gen,
            Lift,
            All
        }
        
        /// <summary>
        /// 资源打包配置文件，资源相对路径
        /// </summary>
        public static readonly string PackedPath = $"Packages/com.hdmframe.ui";
        
        /// <summary>
        /// 设置文件路径
        /// </summary>
        //public static readonly string UISettingPath = $"Packages/com.hdmframe.ui/Setting/UIEditorSetting.asset";
        public static readonly string UISettingPath = $"Packages/com.hdmframe.ui/Setting/UIEditorSetting.asset";
 

        /// <summary>
        /// UI框架设置文件
        /// </summary>
        public static EditorSettingScriptable Setting { get; set; } = AssetDatabase.LoadAssetAtPath<EditorSettingScriptable>(UISettingPath);
    }
}
